package o;

import android.content.Context;
import android.widget.CompoundButton;
import o.czk.g;

public class czw {
    private CompoundButton ˋ;

    public czw(Context context, CompoundButton compoundButton) {
        this.ˋ = compoundButton;
    }

    public void ॱ(boolean z) {
        if (cep.ॱ()) {
            dag.ˋ(z);
        } else {
            ˋ(z);
        }
    }

    private void ˋ(boolean z) {
        if (z) {
            czi.ˎ.ˋ("OpenAutoUpdateSwitch", "can not open auto update,emuiVersion:" + azc.ˎ().ॱ());
            ॱ();
            return;
        }
        dag.ˋ(false);
    }

    private void ॱ() {
        dag.ˋ(false);
        if (this.ˋ != null) {
            this.ˋ.setChecked(false);
        }
        evk.ˏ(ContentManager.getInstant().getContext(), g.ʾ, 0).ˋ();
    }
}
